package com.suning.sawp.service.impl.task;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.google.common.collect.Maps;
import com.suning.framework.dal.client.DalClient;
import com.suning.sawp.service.task.dto.BISaleDTO;

@Service
public class BITaskSimpleService {

    @Autowired
    DalClient dalClient;

    /**
     * @see sqlMap_RegionTaskService.xml
     * @param taskNo 总部任务号
     * @return
     */
    public BISaleDTO sumBIDis(Integer taskNo) {
        Map<String, Object> paramMap = Maps.newHashMap();
        paramMap.put("taskNo", taskNo);
        BISaleDTO saleDTO = dalClient.queryForObject("BITaskSimpleService.sumDisAll", paramMap, BISaleDTO.class);
        return saleDTO;
    }

}
